<?php
namespace app\model;

class OperationLog extends BaseModel
{
    // 设置表名
    protected $name = 'operation_logs';
    
    // 关闭自动更新时间
    protected $updateTime = false;
    
    // 字段类型转换
    protected $type = [
        'operation_time' => 'timestamp',
    ];
    
    // 关联用户
    public function user()
    {
        return $this->belongsTo(User::class);
    }
} 